.class public Lcom/instagram/android/feed/a/b/z;
.super Ljava/lang/Object;
.source "MediaViewBinder.java"


# instance fields
.field private final a:Landroid/content/Context;

.field private final b:Lcom/instagram/android/feed/a/b/ad;

.field private final c:Lcom/instagram/android/feed/a/b/af;


# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/instagram/android/feed/a/b/ad;)V
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 33
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 30
    new-instance v0, Lcom/instagram/android/feed/a/b/af;

    invoke-direct {v0, p0}, Lcom/instagram/android/feed/a/b/af;-><init>(Lcom/instagram/android/feed/a/b/z;)V

    iput-object v0, p0, Lcom/instagram/android/feed/a/b/z;->c:Lcom/instagram/android/feed/a/b/af;

    .line 34
    iput-object p1, p0, Lcom/instagram/android/feed/a/b/z;->a:Landroid/content/Context;

    .line 35
    iput-object p2, p0, Lcom/instagram/android/feed/a/b/z;->b:Lcom/instagram/android/feed/a/b/ad;

    .line 36
    return-void
.end method

.method public static a(Landroid/view/View;)Lcom/instagram/android/feed/a/b/ae;
    .locals 2
    .parameter

    .prologue
    .line 39
    new-instance v1, Lcom/instagram/android/feed/a/b/ae;

    invoke-direct {v1}, Lcom/instagram/android/feed/a/b/ae;-><init>()V

    .line 40
    sget v0, Lcom/facebook/aw;->media_group:I

    invoke-virtual {p0, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    iput-object v0, v1, Lcom/instagram/android/feed/a/b/ae;->a:Landroid/view/ViewGroup;

    .line 41
    sget v0, Lcom/facebook/aw;->row_feed_photo_imageview:I

    invoke-virtual {p0, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/mediacache/i;

    iput-object v0, v1, Lcom/instagram/android/feed/a/b/ae;->b:Lcom/instagram/android/mediacache/i;

    .line 42
    sget v0, Lcom/facebook/aw;->row_feed_photo_people_tagging:I

    invoke-virtual {p0, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/people/widget/PeopleTagsLayout;

    iput-object v0, v1, Lcom/instagram/android/feed/a/b/ae;->c:Lcom/instagram/android/people/widget/PeopleTagsLayout;

    .line 45
    sget v0, Lcom/facebook/aw;->row_feed_photo_tags_indicator:I

    invoke-virtual {p0, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, v1, Lcom/instagram/android/feed/a/b/ae;->d:Landroid/widget/Button;

    .line 46
    sget v0, Lcom/facebook/aw;->row_feed_video_indicator:I

    invoke-virtual {p0, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/creation/video/ui/MediaActionsView;

    iput-object v0, v1, Lcom/instagram/android/feed/a/b/ae;->e:Lcom/instagram/creation/video/ui/MediaActionsView;

    .line 47
    return-object v1
.end method

.method static synthetic a(Lcom/instagram/android/feed/a/b/z;)Lcom/instagram/android/feed/a/b/af;
    .locals 1
    .parameter

    .prologue
    .line 26
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/z;->c:Lcom/instagram/android/feed/a/b/af;

    return-object v0
.end method

.method static synthetic b(Lcom/instagram/android/feed/a/b/z;)Lcom/instagram/android/feed/a/b/ad;
    .locals 1
    .parameter

    .prologue
    .line 26
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/z;->b:Lcom/instagram/android/feed/a/b/ad;

    return-object v0
.end method

.method static synthetic c(Lcom/instagram/android/feed/a/b/z;)Landroid/content/Context;
    .locals 1
    .parameter

    .prologue
    .line 26
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/z;->a:Landroid/content/Context;

    return-object v0
.end method


# virtual methods
.method public a(Landroid/content/Context;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 51
    invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    sget v1, Lcom/facebook/ax;->row_feed_media_media_group:I

    const/4 v2, 0x0

    invoke-virtual {v0, v1, p2, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v0

    .line 53
    invoke-static {v0}, Lcom/instagram/android/feed/a/b/z;->a(Landroid/view/View;)Lcom/instagram/android/feed/a/b/ae;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 54
    return-object v0
.end method

.method public a(Lcom/instagram/android/feed/a/b/ae;Lcom/instagram/j/l;IZLcom/instagram/creation/video/ui/g;)V
    .locals 6
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    const/16 v5, 0x8

    const/4 v2, 0x4

    const/4 v1, 0x0

    .line 64
    iget-object v0, p1, Lcom/instagram/android/feed/a/b/ae;->a:Landroid/view/ViewGroup;

    new-instance v3, Lcom/instagram/android/feed/a/b/aa;

    invoke-direct {v3, p0, p1, p3, p2}, Lcom/instagram/android/feed/a/b/aa;-><init>(Lcom/instagram/android/feed/a/b/z;Lcom/instagram/android/feed/a/b/ae;ILcom/instagram/j/l;)V

    invoke-virtual {v0, v3}, Landroid/view/ViewGroup;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 73
    iget-object v0, p1, Lcom/instagram/android/feed/a/b/ae;->b:Lcom/instagram/android/mediacache/i;

    sget v3, Lcom/facebook/aw;->key_media_id:I

    invoke-virtual {v0, v3}, Lcom/instagram/android/mediacache/i;->getTag(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 75
    iget-object v0, p1, Lcom/instagram/android/feed/a/b/ae;->b:Lcom/instagram/android/mediacache/i;

    sget v3, Lcom/facebook/aw;->key_list_position:I

    invoke-static {p3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    invoke-virtual {v0, v3, v4}, Lcom/instagram/android/mediacache/i;->setTag(ILjava/lang/Object;)V

    .line 76
    iget-object v0, p1, Lcom/instagram/android/feed/a/b/ae;->b:Lcom/instagram/android/mediacache/i;

    sget v3, Lcom/facebook/aw;->key_media_id:I

    invoke-virtual {p2}, Lcom/instagram/j/l;->c()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v0, v3, v4}, Lcom/instagram/android/mediacache/i;->setTag(ILjava/lang/Object;)V

    .line 78
    iget-object v0, p1, Lcom/instagram/android/feed/a/b/ae;->b:Lcom/instagram/android/mediacache/i;

    invoke-virtual {v0}, Lcom/instagram/android/mediacache/i;->clearAnimation()V

    .line 80
    invoke-virtual {p2}, Lcom/instagram/j/l;->h()Lcom/instagram/model/a/a;

    move-result-object v0

    sget-object v3, Lcom/instagram/model/a/a;->b:Lcom/instagram/model/a/a;

    if-ne v0, v3, :cond_1

    sget-object v0, Lcom/instagram/creation/video/ui/g;->e:Lcom/instagram/creation/video/ui/g;

    if-eq p5, v0, :cond_0

    sget-object v0, Lcom/instagram/creation/video/ui/g;->a:Lcom/instagram/creation/video/ui/g;

    if-eq p5, v0, :cond_0

    sget-object v0, Lcom/instagram/creation/video/ui/g;->f:Lcom/instagram/creation/video/ui/g;

    if-ne p5, v0, :cond_1

    .line 85
    :cond_0
    iget-object v0, p1, Lcom/instagram/android/feed/a/b/ae;->b:Lcom/instagram/android/mediacache/i;

    invoke-virtual {v0, v5}, Lcom/instagram/android/mediacache/i;->setVisibility(I)V

    .line 90
    :goto_0
    iget-object v0, p1, Lcom/instagram/android/feed/a/b/ae;->b:Lcom/instagram/android/mediacache/i;

    invoke-virtual {v0}, Lcom/instagram/android/mediacache/i;->c()V

    .line 91
    iget-object v0, p1, Lcom/instagram/android/feed/a/b/ae;->b:Lcom/instagram/android/mediacache/i;

    new-instance v3, Lcom/instagram/android/feed/a/b/ab;

    invoke-direct {v3, p0, p1, p5, p2}, Lcom/instagram/android/feed/a/b/ab;-><init>(Lcom/instagram/android/feed/a/b/z;Lcom/instagram/android/feed/a/b/ae;Lcom/instagram/creation/video/ui/g;Lcom/instagram/j/l;)V

    invoke-virtual {v0, v3}, Lcom/instagram/android/mediacache/i;->a(Lcom/instagram/android/mediacache/m;)V

    .line 102
    invoke-virtual {p2}, Lcom/instagram/j/l;->R()Z

    move-result v0

    if-eqz v0, :cond_2

    .line 103
    iget-object v0, p1, Lcom/instagram/android/feed/a/b/ae;->b:Lcom/instagram/android/mediacache/i;

    invoke-virtual {p2}, Lcom/instagram/j/l;->Q()Landroid/net/Uri;

    move-result-object v3

    invoke-virtual {v3}, Landroid/net/Uri;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Lcom/instagram/android/mediacache/i;->setUrl(Ljava/lang/String;)V

    .line 110
    :goto_1
    invoke-virtual {p2}, Lcom/instagram/j/l;->h()Lcom/instagram/model/a/a;

    move-result-object v0

    sget-object v3, Lcom/instagram/model/a/a;->a:Lcom/instagram/model/a/a;

    if-ne v0, v3, :cond_5

    .line 111
    iget-object v0, p1, Lcom/instagram/android/feed/a/b/ae;->d:Landroid/widget/Button;

    invoke-virtual {v0}, Landroid/widget/Button;->clearAnimation()V

    .line 113
    iget-object v0, p1, Lcom/instagram/android/feed/a/b/ae;->c:Lcom/instagram/android/people/widget/PeopleTagsLayout;

    invoke-virtual {v0, v1}, Lcom/instagram/android/people/widget/PeopleTagsLayout;->setVisibility(I)V

    .line 114
    iget-object v3, p1, Lcom/instagram/android/feed/a/b/ae;->d:Landroid/widget/Button;

    invoke-virtual {p2}, Lcom/instagram/j/l;->U()Z

    move-result v0

    if-eqz v0, :cond_3

    iget-object v0, p1, Lcom/instagram/android/feed/a/b/ae;->b:Lcom/instagram/android/mediacache/i;

    invoke-virtual {v0}, Lcom/instagram/android/mediacache/i;->b()Z

    move-result v0

    if-eqz v0, :cond_3

    move v0, v1

    :goto_2
    invoke-virtual {v3, v0}, Landroid/widget/Button;->setVisibility(I)V

    .line 118
    invoke-virtual {p2}, Lcom/instagram/j/l;->U()Z

    move-result v0

    if-eqz v0, :cond_4

    if-eqz p4, :cond_4

    .line 119
    iget-object v0, p1, Lcom/instagram/android/feed/a/b/ae;->c:Lcom/instagram/android/people/widget/PeopleTagsLayout;

    invoke-virtual {v0}, Lcom/instagram/android/people/widget/PeopleTagsLayout;->removeAllViews()V

    .line 120
    iget-object v0, p1, Lcom/instagram/android/feed/a/b/ae;->c:Lcom/instagram/android/people/widget/PeopleTagsLayout;

    invoke-virtual {v0, p2, v1}, Lcom/instagram/android/people/widget/PeopleTagsLayout;->a(Lcom/instagram/j/l;Z)V

    .line 130
    :goto_3
    iget-object v0, p1, Lcom/instagram/android/feed/a/b/ae;->b:Lcom/instagram/android/mediacache/i;

    invoke-virtual {v0}, Lcom/instagram/android/mediacache/i;->b()Z

    move-result v0

    if-eqz v0, :cond_6

    .line 131
    iget-object v0, p1, Lcom/instagram/android/feed/a/b/ae;->e:Lcom/instagram/creation/video/ui/MediaActionsView;

    invoke-virtual {v0, p5}, Lcom/instagram/creation/video/ui/MediaActionsView;->setVideoIconState(Lcom/instagram/creation/video/ui/g;)V

    .line 136
    :goto_4
    iget-object v0, p1, Lcom/instagram/android/feed/a/b/ae;->e:Lcom/instagram/creation/video/ui/MediaActionsView;

    new-instance v1, Lcom/instagram/android/feed/a/b/ac;

    invoke-direct {v1, p0}, Lcom/instagram/android/feed/a/b/ac;-><init>(Lcom/instagram/android/feed/a/b/z;)V

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/ui/MediaActionsView;->setAudioToggleOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 145
    iget-object v0, p1, Lcom/instagram/android/feed/a/b/ae;->e:Lcom/instagram/creation/video/ui/MediaActionsView;

    invoke-virtual {v0}, Lcom/instagram/creation/video/ui/MediaActionsView;->b()V

    .line 146
    return-void

    .line 87
    :cond_1
    iget-object v0, p1, Lcom/instagram/android/feed/a/b/ae;->b:Lcom/instagram/android/mediacache/i;

    invoke-virtual {v0, v1}, Lcom/instagram/android/mediacache/i;->setVisibility(I)V

    goto :goto_0

    .line 105
    :cond_2
    iget-object v0, p1, Lcom/instagram/android/feed/a/b/ae;->b:Lcom/instagram/android/mediacache/i;

    invoke-virtual {p2}, Lcom/instagram/j/l;->y()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Lcom/instagram/android/mediacache/i;->setUrl(Ljava/lang/String;)V

    goto :goto_1

    :cond_3
    move v0, v2

    .line 114
    goto :goto_2

    .line 122
    :cond_4
    iget-object v0, p1, Lcom/instagram/android/feed/a/b/ae;->c:Lcom/instagram/android/people/widget/PeopleTagsLayout;

    invoke-virtual {v0}, Lcom/instagram/android/people/widget/PeopleTagsLayout;->removeAllViews()V

    goto :goto_3

    .line 125
    :cond_5
    iget-object v0, p1, Lcom/instagram/android/feed/a/b/ae;->c:Lcom/instagram/android/people/widget/PeopleTagsLayout;

    invoke-virtual {v0, v5}, Lcom/instagram/android/people/widget/PeopleTagsLayout;->setVisibility(I)V

    .line 126
    iget-object v0, p1, Lcom/instagram/android/feed/a/b/ae;->d:Landroid/widget/Button;

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setVisibility(I)V

    goto :goto_3

    .line 133
    :cond_6
    iget-object v0, p1, Lcom/instagram/android/feed/a/b/ae;->e:Lcom/instagram/creation/video/ui/MediaActionsView;

    sget-object v1, Lcom/instagram/creation/video/ui/g;->a:Lcom/instagram/creation/video/ui/g;

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/ui/MediaActionsView;->setVideoIconState(Lcom/instagram/creation/video/ui/g;)V

    goto :goto_4
.end method
